package servlet.listener.application;

import javax.servlet.ServletContextAttributeEvent;
import javax.servlet.ServletContextAttributeListener;

public class ServletContextAttributeListenerDemo implements ServletContextAttributeListener {

    public void attributeAdded(ServletContextAttributeEvent scab) {
    	System.out.println("ServletContext属性新增：" + scab.getName() + ",值为:" + scab.getValue());
    }

    public void attributeReplaced(ServletContextAttributeEvent scab) {
    	System.out.println("ServletContext属性替换：" + scab.getName() + ",值为:" + scab.getValue());
    }

    public void attributeRemoved(ServletContextAttributeEvent scab) {
    	System.out.println("ServletContext属性删除：" + scab.getName() + ",值为:" + scab.getValue());
    }
	
}
